12. Reading From SharedPreferences

Reading From SharedPreferences

INSTRUCTOR NOTE:

getDefaultSharedPreferences : Gets a SharedPreferences instance that points to the default file that is used by the preference framework in the given context!

getSharedPreferences: Gets a specific SharedPreferences instance by name in case you have more than one preference in the same context!

For more information on how to use either of them check out the documentation here